<?php

namespace App\Controller\Admin;

use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;

#[Controller]
class MappingController extends BaseController
{

    // Hyperf 会自动为此方法生成一个 /admin/mapping/index 的路由，允许通过 GET 或 POST 方式请求
    #[RequestMapping(path: "index", methods: "get,post")]
    public function index()
    {
        return $this->success(['ok']);
    }
}